﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="p" uri="/WEB-INF/tld/pagination.tld" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>采购入库管理</title>
		<link rel="stylesheet" type="text/css"
			href="<%=request.getContextPath()%>/css/public.css">

		<script language="JavaScript"
			src="<%=request.getContextPath()%>/js/public.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/date1.js"></script>
		<script type="text/javascript"
			src="<%=request.getContextPath()%>/js/sorttable.js"></script>
	</head>
	<body>
		<div id="info_all">
			<div id="info_top">
				采购入库管理
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<div id="btn">
				<input type="button" value="新增"
					onClick="addAction('addStockInStorageInput')" onFocus="this.blur()"
					onMouseOver="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="修改" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="删除"
					onClick="deleteAction('deleteStockInStorage')"
					onFocus="this.blur()" onMouseOver="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="上查" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="下查" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="审核" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="反审核" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="作废" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="反作废" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="核销" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="反核销" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="凭证" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="关闭" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="反关闭" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="拆分" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="合并" onClick="" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="明细"
					onClick="showDetail('showStockInStorageDetails', '采购入库单')"
					onFocus="this.blur()" onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />

			</div>
			<s:form action="getStockInStorages" theme="simple" id="delrow">
				<div id="info_main">
					<%-- 查询栏 --%>

					<div id="select">
						<table>
							<tr>
								<td width="55px">
									供应商名
								</td>
								<td width="130px">
									<s:textfield name="" size="12" id="supplierName"
										readonly="true"></s:textfield>
									<s:hidden name="stockInStorage.supplierId" id="supplierId"></s:hidden>
									<img src="<%=request.getContextPath()%>/images/kookup.gif"
										style="cursor: hand"
										onclick="openWin('supplierSelect.action','supplier',750,700,0)">
								</td>
								<td width="30">
									编号
								</td>
								<td width="120px">
									<s:textfield name="stockInStorage.inStorageCode" size="12"></s:textfield>
								</td>
								<td width="55px">
									审核状态
								</td>
								<td width="110px">
									<s:select list="#{'2':'请选择', '0':'未审核', '1':'已审核'}"
										name="stockInStorage.isAuditing"></s:select>
								</td>
								<td width="55px">
									入库日期
								</td>
								<td width="120px">
									<s:textfield size="12" name="beginDate" readonly="true"
										cssStyle="cursor:hand" onclick="calendar.setHook(this)"></s:textfield>
								</td>
								<td width="30px">
									到
								</td>
								<td width="110px">
									<s:textfield size="12" name="endDate" readonly="true"
										cssStyle="cursor:hand" onclick="calendar.setHook(this)"></s:textfield>
								</td>
							</tr>

						</table>
					</div>
					<div class="sele">
						<input type="submit" value="查询" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />
						<input type="reset" value="重置" onFocus="this.blur()"
							onmouseover="this.className='btnover'"
							onmouseout="this.className='btnout'" class="btnsize" />
						<hr>
					</div>

					<%-- 信息显示栏 --%>
					<div id="info_info1">
						<table id="info_table" width="1100px" cellspacing=1px
							cellpadding=1px class="sortable">
							<thead>
								<tr>
									<th>
										<input type="checkbox" onClick="selectAll()" />
									</th>
									<th width="60px">
										审核标志
									</th>
									<th width="60px">
										钩稽标志
									</th>
									<th width="60px">
										作废标志
									</th>
									<th width="60px">
										关闭标志
									</th>
									<th width="90px">
										日期
									</th>
									<th width="90px">
										单据编号
									</th>
									<th width="120px">
										供应商
									</th>
									<th width="80px">
										采购方式
									</th>
									<th width="70px">
										部门
									</th>
									<th width="70px">
										业务员
									</th>
									<th width="70px">
										制单人
									</th>
									<th width="70px">
										审核人
									</th>
									<th width="180px">
										备注
									</th>
								</tr>
							</thead>
							<tbody>
								<s:iterator value="stockInStorageDTOList">
									<tr>
										<td>
											<s:checkbox name="rowlist"
												fieldValue="%{stockInStorage.stockInStorageId}"
												theme="simple"></s:checkbox>
										</td>
										<td>
											<s:if test="stockInStorage.isAuditing==1">审核</s:if>
											<s:else>未审核</s:else>
										</td>
										<td>
											<s:if test="stockInStorage.isHook==1">勾稽</s:if>
											<s:else>未勾稽</s:else>
										</td>
										<td>
											<s:if test="stockInStorage.isCancel">作废</s:if>
											<s:else>未作废</s:else>
										</td>
										<td>
											<s:if test="stockInStorage.isClosed">关闭</s:if>
											<s:else>未关闭</s:else>
										</td>
										<td>
											<s:property value="stockInStorage.inStorageDate" />
										</td>
										<td>
											<s:property value="stockInStorage.inStorageCode" />
										</td>
										<td>
											<s:property value="supplier.supplierName" />
										</td>
										<td>
											<s:if test="stockInStorage.stockWay==0">现购</s:if>
											<s:else>赊购</s:else>
										</td>
										<td>
											<s:property value="department.departmentName" />
										</td>
										<td>
											<s:property value="businesser.candiateName" />
										</td>
										<td>
											<s:property value="stockInStorage.makeBiller" />
										</td>
										<td>
											<s:property value="stockInStorage.auditinger" />
										</td>
										<td>
											<s:property value="stockInStorage.remark" />
										</td>
									</tr>
								</s:iterator>
							</tbody>
							<tfoot>
								<tr>
								</tr>
							</tfoot>
						</table>
						<s:if test="!stockInStorageDTOList.isEmpty">
							<tr style="font-size: 12px;">

								<div align="center">
									<font color="#FF0000"> 共<s:property value="page.total" />
										页 第 <s:property value="page.cpage" /> 页 <p:page cpage="%{page.cpage}" total="%{page.total}" url="%{page.url}" />
									</font>

								</div>
							</tr>
						</s:if>
						<script language="javascript">  
						//("表格名称","奇数行背景","偶数行背景","点击后背景");
						 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						 //("表格名称","奇数行背景","偶数行背景");
						 //setcolor("t","#ffffff","#ffffff");
					</script>
					</div>
				</div>
			</s:form>
		</div>

	</body>
</html>
